import {mapActions, mapState} from "vuex";

export default {
    props: {
        curProperty: {
            default() {
                return {}
            }
        }
    },
    computed:{
        ...mapState('compDesign/config',[
            'compGroup',//控件清单
            'contextmenuE'
        ]),
    },
    methods:{
        ...mapActions('compDesign/config',[
            'deleteElement',//删除元素
            'setElement',//设置选中元素
            'editContextMenu'
        ]),
        syncGroup(){
            // 这里注释，在配置弹窗关闭后，统一全部更新
            // if (this.compGroup.currentClassObject && this.compGroup.currentClassObject.property) {
            //     this.compGroup.updateItem(Object.assign({}, this.compGroup.currentItem, {
            //         property: this.compGroup.currentClassObject.property
            //     }))
            // }
        }
    }
}